{"ast":null,"code":"import classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { FormItemInputContext } from '../form/context';\nimport useStyle from './style';\nconst Group = props => {\n  const {\n    getPrefixCls,\n    direction\n  } = useContext(ConfigContext);\n  const {\n    prefixCls: customizePrefixCls,\n    className = ''\n  } = props;\n  const prefixCls = getPrefixCls('input-group', customizePrefixCls);\n  const inputPrefixCls = getPrefixCls('input');\n  const [wrapSSR, hashId] = useStyle(inputPrefixCls);\n  const cls = classNames(prefixCls, {\n    [`${prefixCls}-lg`]: props.size === 'large',\n    [`${prefixCls}-sm`]: props.size === 'small',\n    [`${prefixCls}-compact`]: props.compact,\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, hashId, className);\n  const formItemContext = useContext(FormItemInputContext);\n  const groupFormItemContext = useMemo(() => Object.assign(Object.assign({}, formItemContext), {\n    isFormItemInput: false\n  }), [formItemContext]);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"span\", {\n    className: cls,\n    style: props.style,\n    onMouseEnter: props.onMouseEnter,\n    onMouseLeave: props.onMouseLeave,\n    onFocus: props.onFocus,\n    onBlur: props.onBlur\n  }, /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n    value: groupFormItemContext\n  }, props.children)));\n};\nexport default Group;","map":{"version":3,"names":["classNames","React","useContext","useMemo","ConfigContext","FormItemInputContext","useStyle","Group","props","getPrefixCls","direction","prefixCls","customizePrefixCls","className","inputPrefixCls","wrapSSR","hashId","cls","size","compact","formItemContext","groupFormItemContext","Object","assign","isFormItemInput","createElement","style","onMouseEnter","onMouseLeave","onFocus","onBlur","Provider","value","children"],"sources":["/data/messenger.client/node_modules/antd/es/input/Group.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { FormItemInputContext } from '../form/context';\nimport useStyle from './style';\nconst Group = props => {\n  const {\n    getPrefixCls,\n    direction\n  } = useContext(ConfigContext);\n  const {\n    prefixCls: customizePrefixCls,\n    className = ''\n  } = props;\n  const prefixCls = getPrefixCls('input-group', customizePrefixCls);\n  const inputPrefixCls = getPrefixCls('input');\n  const [wrapSSR, hashId] = useStyle(inputPrefixCls);\n  const cls = classNames(prefixCls, {\n    [`${prefixCls}-lg`]: props.size === 'large',\n    [`${prefixCls}-sm`]: props.size === 'small',\n    [`${prefixCls}-compact`]: props.compact,\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, hashId, className);\n  const formItemContext = useContext(FormItemInputContext);\n  const groupFormItemContext = useMemo(() => Object.assign(Object.assign({}, formItemContext), {\n    isFormItemInput: false\n  }), [formItemContext]);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"span\", {\n    className: cls,\n    style: props.style,\n    onMouseEnter: props.onMouseEnter,\n    onMouseLeave: props.onMouseLeave,\n    onFocus: props.onFocus,\n    onBlur: props.onBlur\n  }, /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n    value: groupFormItemContext\n  }, props.children)));\n};\nexport default Group;"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAC3C,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,oBAAoB,QAAQ,iBAAiB;AACtD,OAAOC,QAAQ,MAAM,SAAS;AAC9B,MAAMC,KAAK,GAAGC,KAAK,IAAI;EACrB,MAAM;IACJC,YAAY;IACZC;EACF,CAAC,GAAGR,UAAU,CAACE,aAAa,CAAC;EAC7B,MAAM;IACJO,SAAS,EAAEC,kBAAkB;IAC7BC,SAAS,GAAG;EACd,CAAC,GAAGL,KAAK;EACT,MAAMG,SAAS,GAAGF,YAAY,CAAC,aAAa,EAAEG,kBAAkB,CAAC;EACjE,MAAME,cAAc,GAAGL,YAAY,CAAC,OAAO,CAAC;EAC5C,MAAM,CAACM,OA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